package cn.cy.behavior.command.pattern;

/**
 * @author yangxq
 * @desc 调用者：遥控器类
 * @Date 2025-05-08
 */
public class RemoteControl {

    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void pressButton() {
        command.execute();
    }

}
